package com.stenio.fancat.mapper.user;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stenio.fancat.domain.user.UserRelationship;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户模块Mapper接口( 最新的 )
 */
@Repository
public interface UserRelationshipMapper extends BaseMapper<UserRelationship> {

    UserRelationship selectUserInfoById(String userId);

    UserRelationship selectUserInfoByUId(String unionId);

    //Integer modifyRelationship(String userId,String babyId,Integer relationship,String inviteUserId);

    Integer updatePhoneByUserId(@Param("userId")String userId, @Param("phone")String phone);

    //void updateBabyIdById(UserRelationship userRelationship);

    Integer modifyInfo(String name,String icon,String unionId);
}
